<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: E:/knet-git/knet/knet/channel.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e74998c9a9305a116abc25fcf9a1edb.html">knet-git</a></li><li class="navelem"><a class="el" href="dir_a1c045b39f32066568ae964b52db514f.html">knet</a></li><li class="navelem"><a class="el" href="dir_f76d03789f0b12416cfffea59e2ed47d.html">knet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">channel.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00052.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014-2015, dennis wang</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *     * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *     * Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *       documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef CHANNEL_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define CHANNEL_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00056.html">config.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<a class="code" href="a00006.html">kchannel_t</a>* <a class="code" href="a00052_af1bfbfb5240375789fcc89b087280ad8.html#af1bfbfb5240375789fcc89b087280ad8">knet_channel_create</a>(uint32_t max_send_list_len, uint32_t recv_ring_len);</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<a class="code" href="a00006.html">kchannel_t</a>* <a class="code" href="a00052_a6cfbae713bcd155703df7871a978dda6.html#a6cfbae713bcd155703df7871a978dda6">knet_channel_create_exist_socket_fd</a>(<a class="code" href="a00056_a0d9e0afbf02fb6ed6c5b1415dce51b05.html#a0d9e0afbf02fb6ed6c5b1415dce51b05">socket_t</a> socket_fd, uint32_t max_send_list_len, uint32_t recv_ring_len);</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00052_ad6e14ad79303e00c50f1231bdf2447ff.html#ad6e14ad79303e00c50f1231bdf2447ff">knet_channel_destroy</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00052_a0b4008dc5d3faa3a445942b1eabe499f.html#a0b4008dc5d3faa3a445942b1eabe499f">knet_channel_connect</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel, <span class="keyword">const</span> <span class="keywordtype">char</span>* ip, <span class="keywordtype">int</span> port);</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00052_a719cb5a1d455fe1af74348effd93ec6f.html#a719cb5a1d455fe1af74348effd93ec6f">knet_channel_accept</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel, <span class="keyword">const</span> <span class="keywordtype">char</span>* ip, <span class="keywordtype">int</span> port, <span class="keywordtype">int</span> backlog);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="keywordtype">void</span> <a class="code" href="a00052_ad9ce907288d44a762a93ff54c4a4a7af.html#ad9ce907288d44a762a93ff54c4a4a7af">knet_channel_close</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00052_ad7d429bb2a30ded75493a9ccf22bad63.html#ad7d429bb2a30ded75493a9ccf22bad63">knet_channel_send</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel, <span class="keyword">const</span> <span class="keywordtype">char</span>* data, <span class="keywordtype">int</span> size);</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00052_aeef6af4f8e4d97905640ade15dc13c33.html#aeef6af4f8e4d97905640ade15dc13c33">knet_channel_send_buffer</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel, <a class="code" href="a00003.html">kbuffer_t</a>* send_buffer);</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00052_a6b94f1431ad03b1bc7497d5680f2c8fe.html#a6b94f1431ad03b1bc7497d5680f2c8fe">knet_channel_update_send</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00052_a0e79d45ab68ec6cc5c85425231f3e9a1.html#a0e79d45ab68ec6cc5c85425231f3e9a1">knet_channel_update_recv</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<a class="code" href="a00056_a0d9e0afbf02fb6ed6c5b1415dce51b05.html#a0d9e0afbf02fb6ed6c5b1415dce51b05">socket_t</a> <a class="code" href="a00052_aac1ff10cb6b113a65e108e4c7422c149.html#aac1ff10cb6b113a65e108e4c7422c149">knet_channel_get_socket_fd</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;<a class="code" href="a00034.html">kringbuffer_t</a>* <a class="code" href="a00052_ad289fcea4095b519b0ced40cfb89f693.html#ad289fcea4095b519b0ced40cfb89f693">knet_channel_get_ringbuffer</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;uint32_t <a class="code" href="a00052_a26e5ba64b710a168b780e2b845ba3cca.html#a26e5ba64b710a168b780e2b845ba3cca">knet_channel_get_max_send_list_len</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;</div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;uint32_t <a class="code" href="a00052_aba9f33720ab9f2d3ae59a75cf4f7841a.html#aba9f33720ab9f2d3ae59a75cf4f7841a">knet_channel_get_max_recv_buffer_len</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;uint64_t <a class="code" href="a00052_a232548ee5a65b9cdcd0475cefe8f9095.html#a232548ee5a65b9cdcd0475cefe8f9095">knet_channel_get_uuid</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="keywordtype">int</span> <a class="code" href="a00052_af1119c9eaa72eae57119c600663fa413.html#af1119c9eaa72eae57119c600663fa413">knet_channel_send_list_reach_max</a>(<a class="code" href="a00006.html">kchannel_t</a>* channel);</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* CHANNEL_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="a00052_af1bfbfb5240375789fcc89b087280ad8_html_af1bfbfb5240375789fcc89b087280ad8"><div class="ttname"><a href="a00052_af1bfbfb5240375789fcc89b087280ad8.html#af1bfbfb5240375789fcc89b087280ad8">knet_channel_create</a></div><div class="ttdeci">kchannel_t * knet_channel_create(uint32_t max_send_list_len, uint32_t recv_ring_len)</div><div class="ttdoc">创建一个kchannel_t实例 </div><div class="ttdef"><b>Definition:</b> channel.c:41</div></div>
<div class="ttc" id="a00056_html"><div class="ttname"><a href="a00056.html">config.h</a></div></div>
<div class="ttc" id="a00003_html"><div class="ttname"><a href="a00003.html">_buffer_t</a></div><div class="ttdef"><b>Definition:</b> buffer.c:28</div></div>
<div class="ttc" id="a00052_aba9f33720ab9f2d3ae59a75cf4f7841a_html_aba9f33720ab9f2d3ae59a75cf4f7841a"><div class="ttname"><a href="a00052_aba9f33720ab9f2d3ae59a75cf4f7841a.html#aba9f33720ab9f2d3ae59a75cf4f7841a">knet_channel_get_max_recv_buffer_len</a></div><div class="ttdeci">uint32_t knet_channel_get_max_recv_buffer_len(kchannel_t *channel)</div><div class="ttdoc">取得接收缓冲区最大长度限制 </div><div class="ttdef"><b>Definition:</b> channel.c:239</div></div>
<div class="ttc" id="a00052_ad9ce907288d44a762a93ff54c4a4a7af_html_ad9ce907288d44a762a93ff54c4a4a7af"><div class="ttname"><a href="a00052_ad9ce907288d44a762a93ff54c4a4a7af.html#ad9ce907288d44a762a93ff54c4a4a7af">knet_channel_close</a></div><div class="ttdeci">void knet_channel_close(kchannel_t *channel)</div><div class="ttdoc">关闭 </div><div class="ttdef"><b>Definition:</b> channel.c:219</div></div>
<div class="ttc" id="a00052_ad289fcea4095b519b0ced40cfb89f693_html_ad289fcea4095b519b0ced40cfb89f693"><div class="ttname"><a href="a00052_ad289fcea4095b519b0ced40cfb89f693.html#ad289fcea4095b519b0ced40cfb89f693">knet_channel_get_ringbuffer</a></div><div class="ttdeci">kringbuffer_t * knet_channel_get_ringbuffer(kchannel_t *channel)</div><div class="ttdoc">取得读缓冲区 </div><div class="ttdef"><b>Definition:</b> channel.c:229</div></div>
<div class="ttc" id="a00006_html"><div class="ttname"><a href="a00006.html">_channel_t</a></div><div class="ttdef"><b>Definition:</b> channel.c:33</div></div>
<div class="ttc" id="a00052_aeef6af4f8e4d97905640ade15dc13c33_html_aeef6af4f8e4d97905640ade15dc13c33"><div class="ttname"><a href="a00052_aeef6af4f8e4d97905640ade15dc13c33.html#aeef6af4f8e4d97905640ade15dc13c33">knet_channel_send_buffer</a></div><div class="ttdeci">int knet_channel_send_buffer(kchannel_t *channel, kbuffer_t *send_buffer)</div><div class="ttdoc">发送 放到发送链表末尾等待适当时机发送. </div><div class="ttdef"><b>Definition:</b> channel.c:111</div></div>
<div class="ttc" id="a00052_af1119c9eaa72eae57119c600663fa413_html_af1119c9eaa72eae57119c600663fa413"><div class="ttname"><a href="a00052_af1119c9eaa72eae57119c600663fa413.html#af1119c9eaa72eae57119c600663fa413">knet_channel_send_list_reach_max</a></div><div class="ttdeci">int knet_channel_send_list_reach_max(kchannel_t *channel)</div><div class="ttdoc">发送链表内缓冲区数量是否达到最大 </div><div class="ttdef"><b>Definition:</b> channel.c:249</div></div>
<div class="ttc" id="a00052_a0b4008dc5d3faa3a445942b1eabe499f_html_a0b4008dc5d3faa3a445942b1eabe499f"><div class="ttname"><a href="a00052_a0b4008dc5d3faa3a445942b1eabe499f.html#a0b4008dc5d3faa3a445942b1eabe499f">knet_channel_connect</a></div><div class="ttdeci">int knet_channel_connect(kchannel_t *channel, const char *ip, int port)</div><div class="ttdoc">连接监听器 </div><div class="ttdef"><b>Definition:</b> channel.c:92</div></div>
<div class="ttc" id="a00052_ad6e14ad79303e00c50f1231bdf2447ff_html_ad6e14ad79303e00c50f1231bdf2447ff"><div class="ttname"><a href="a00052_ad6e14ad79303e00c50f1231bdf2447ff.html#ad6e14ad79303e00c50f1231bdf2447ff">knet_channel_destroy</a></div><div class="ttdeci">void knet_channel_destroy(kchannel_t *channel)</div><div class="ttdoc">销毁kchannel_t实例 </div><div class="ttdef"><b>Definition:</b> channel.c:72</div></div>
<div class="ttc" id="a00034_html"><div class="ttname"><a href="a00034.html">_ringbuffer_t</a></div><div class="ttdef"><b>Definition:</b> ringbuffer.c:29</div></div>
<div class="ttc" id="a00052_a6cfbae713bcd155703df7871a978dda6_html_a6cfbae713bcd155703df7871a978dda6"><div class="ttname"><a href="a00052_a6cfbae713bcd155703df7871a978dda6.html#a6cfbae713bcd155703df7871a978dda6">knet_channel_create_exist_socket_fd</a></div><div class="ttdeci">kchannel_t * knet_channel_create_exist_socket_fd(socket_t socket_fd, uint32_t max_send_list_len, uint32_t recv_ring_len)</div><div class="ttdoc">创建一个kchannel_t实例 </div><div class="ttdef"><b>Definition:</b> channel.c:50</div></div>
<div class="ttc" id="a00056_a0d9e0afbf02fb6ed6c5b1415dce51b05_html_a0d9e0afbf02fb6ed6c5b1415dce51b05"><div class="ttname"><a href="a00056_a0d9e0afbf02fb6ed6c5b1415dce51b05.html#a0d9e0afbf02fb6ed6c5b1415dce51b05">socket_t</a></div><div class="ttdeci">#define socket_t</div><div class="ttdef"><b>Definition:</b> config.h:88</div></div>
<div class="ttc" id="a00052_a26e5ba64b710a168b780e2b845ba3cca_html_a26e5ba64b710a168b780e2b845ba3cca"><div class="ttname"><a href="a00052_a26e5ba64b710a168b780e2b845ba3cca.html#a26e5ba64b710a168b780e2b845ba3cca">knet_channel_get_max_send_list_len</a></div><div class="ttdeci">uint32_t knet_channel_get_max_send_list_len(kchannel_t *channel)</div><div class="ttdoc">取得发送链表最大长度限制 </div><div class="ttdef"><b>Definition:</b> channel.c:234</div></div>
<div class="ttc" id="a00052_a719cb5a1d455fe1af74348effd93ec6f_html_a719cb5a1d455fe1af74348effd93ec6f"><div class="ttname"><a href="a00052_a719cb5a1d455fe1af74348effd93ec6f.html#a719cb5a1d455fe1af74348effd93ec6f">knet_channel_accept</a></div><div class="ttdeci">int knet_channel_accept(kchannel_t *channel, const char *ip, int port, int backlog)</div><div class="ttdoc">监听 </div><div class="ttdef"><b>Definition:</b> channel.c:98</div></div>
<div class="ttc" id="a00052_aac1ff10cb6b113a65e108e4c7422c149_html_aac1ff10cb6b113a65e108e4c7422c149"><div class="ttname"><a href="a00052_aac1ff10cb6b113a65e108e4c7422c149.html#aac1ff10cb6b113a65e108e4c7422c149">knet_channel_get_socket_fd</a></div><div class="ttdeci">socket_t knet_channel_get_socket_fd(kchannel_t *channel)</div><div class="ttdoc">取得套接字 </div><div class="ttdef"><b>Definition:</b> channel.c:224</div></div>
<div class="ttc" id="a00052_ad7d429bb2a30ded75493a9ccf22bad63_html_ad7d429bb2a30ded75493a9ccf22bad63"><div class="ttname"><a href="a00052_ad7d429bb2a30ded75493a9ccf22bad63.html#ad7d429bb2a30ded75493a9ccf22bad63">knet_channel_send</a></div><div class="ttdeci">int knet_channel_send(kchannel_t *channel, const char *data, int size)</div><div class="ttdoc">发送 当发送链表为空的时候，会首先尝试直接发送到套接字缓冲区(zero copy)，否则会放到发送链表末尾等待 适...</div><div class="ttdef"><b>Definition:</b> channel.c:126</div></div>
<div class="ttc" id="a00052_a6b94f1431ad03b1bc7497d5680f2c8fe_html_a6b94f1431ad03b1bc7497d5680f2c8fe"><div class="ttname"><a href="a00052_a6b94f1431ad03b1bc7497d5680f2c8fe.html#a6b94f1431ad03b1bc7497d5680f2c8fe">knet_channel_update_send</a></div><div class="ttdeci">int knet_channel_update_send(kchannel_t *channel)</div><div class="ttdoc">可写事件通知 </div><div class="ttdef"><b>Definition:</b> channel.c:156</div></div>
<div class="ttc" id="a00052_a0e79d45ab68ec6cc5c85425231f3e9a1_html_a0e79d45ab68ec6cc5c85425231f3e9a1"><div class="ttname"><a href="a00052_a0e79d45ab68ec6cc5c85425231f3e9a1.html#a0e79d45ab68ec6cc5c85425231f3e9a1">knet_channel_update_recv</a></div><div class="ttdeci">int knet_channel_update_recv(kchannel_t *channel)</div><div class="ttdoc">可读事件通知 </div><div class="ttdef"><b>Definition:</b> channel.c:185</div></div>
<div class="ttc" id="a00052_a232548ee5a65b9cdcd0475cefe8f9095_html_a232548ee5a65b9cdcd0475cefe8f9095"><div class="ttname"><a href="a00052_a232548ee5a65b9cdcd0475cefe8f9095.html#a232548ee5a65b9cdcd0475cefe8f9095">knet_channel_get_uuid</a></div><div class="ttdeci">uint64_t knet_channel_get_uuid(kchannel_t *channel)</div><div class="ttdoc">获取管道UUID </div><div class="ttdef"><b>Definition:</b> channel.c:244</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 27日 星期一 14:33:19 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
